<?php
require_once(dirname(__FILE__)."/../include/common.inc.php");

if($ok=='qz')
{
require_once(DEDEINC."/arc.qzsearchview.class.php");
$kwtype=$lb;
}
else
{
	
if($keyword=='' or $keyword=='请输入关键字')
{
ShowMsg("请输入关键字","-1");
	exit();	
}
	
require_once(DEDEINC."/arc.xlsearchview.class.php");
}


$keyword = FilterSearch(stripslashes($keyword));
$keyword = addslashes(cn_substr($keyword,30));

if($cfg_notallowstr !='' && eregi($cfg_notallowstr,$keyword))
{
	ShowMsg("你的搜索关键字中存在非法内容，被系统禁止！","-1");
	exit();
}



$t1 = ExecTime();
$sp = new SearchView($typeid,$keyword,$orderby,$channeltype,$searchtype,$starttime,$pagesize,$kwtype,$mid);
$sp->Display();

//echo ExecTime() - $t1;
?>